import java.util.*;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-04-19
 * Time: 16:54
 */
public class Furit {
    public static void main(String[] args) {
        HashSet<String> setFurit = new HashSet<>();
        setFurit.add("苹果");
        setFurit.add("桃");
        setFurit.add("梨");
        setFurit.add("草莓");
        setFurit.add("香蕉");
        setFurit.add("桃");
        System.out.println("*********水果种类**********");
        Iterator<String> it = setFurit.iterator();
        while(it.hasNext()){
            System.out.print(it.next()+" ");
        }
        System.out.println("\n本店有"+setFurit.size()+"种水果");
    }
}
